Micron Document
`:top
`!Subcode`! or `!subchannel data`! (called `*control bytes`* in the `F33f`_`[CD-ROM`:/page/wikibook/entry.mu`zim=wikipedia_en_all_nopic_2025-08.zim|entry_path=CD-ROM]`_`f specification) is data contained in a `F33f`_`[compact disc`:/page/wikibook/entry.mu`zim=wikipedia_en_all_nopic_2025-08.zim|entry_path=Compact_disc]`_`f (CD) in addition to digital audio or user data, which is used for control and playback of the CD. The original specification was defined in the `F33f`_`[Red Book`:/page/wikibook/entry.mu`zim=wikipedia_en_all_nopic_2025-08.zim|entry_path=Red_Book_(CD_standard)]`_`f standard for `F33f`_`[Compact Disc Digital Audio`:/page/wikibook/entry.mu`zim=wikipedia_en_all_nopic_2025-08.zim|entry_path=Compact_Disc_Digital_Audio]`_`f, though further specifications have extended their use (including the `F33f`_`[CD-ROM`:/page/wikibook/entry.mu`zim=wikipedia_en_all_nopic_2025-08.zim|entry_path=CD-ROM]`_`f, `F33f`_`[CD Text`:/page/wikibook/entry.mu`zim=wikipedia_en_all_nopic_2025-08.zim|entry_path=CD_Text]`_`f and `F33f`_`[CD+G`:/page/wikibook/entry.mu`zim=wikipedia_en_all_nopic_2025-08.zim|entry_path=CD+G]`_`f specifications).

>>Contents

• `F0af`_`[Structure`#structure]`_`f
• `F0af`_`[Channels`#channels]`_`f
• `F0af`_`[Jack on CD players`#jack-on-cd-players]`_`f
• `F0af`_`[See also`#see-also]`_`f
• `F0af`_`[References`#references]`_`f

-─

>>Structure

Subchannel data is multiplexed with the `F33f`_`[digital audio`:/page/wikibook/entry.mu`zim=wikipedia_en_all_nopic_2025-08.zim|entry_path=Compact_Disc_Digital_Audio]`_`f or `F33f`_`[user digital data`:/page/wikibook/entry.mu`zim=wikipedia_en_all_nopic_2025-08.zim|entry_path=CD-ROM]`_`f. The data in a CD are arranged in frames. A frame comprises 33 bytes, of which 24 bytes are audio or user data, eight bytes are error correction (`F33f`_`[CIRC`:/page/wikibook/entry.mu`zim=wikipedia_en_all_nopic_2025-08.zim|entry_path=Cross-interleaved_Reed-Solomon_coding]`_`f-generated), and one byte is for subcode. Frames are arranged in sectors, which contain 98 frames each. The subcode bytes of the first two frames of a sector are used as two synchronization words. The subcode bytes of the remaining 96 frames of a sector are split into eight 96-bit long subcode channels (also called subchannels or simply channels) by putting together the nth bit of each subcode byte.`:cite-ref-ecma130-1-0[`F5bf`_`[1`#cite-note-ecma130-1]`_`f] Each channel has a bit rate of 7.35 kbit/s.

Each subcode bit/subchannel is designated by a letter from P to W. The following diagram illustrates how the channels are laid out:`:cite-ref-ecma130-1-1[`F5bf`_`[1`#cite-note-ecma130-1]`_`f]

`t
| Subcode / control byte | Subcode / control byte | Subcode / control byte | Subcode / control byte | Subcode / control byte | Subcode / control byte | Subcode / control byte | Subcode / control byte | Subcode / control byte |
|---|---|---|---|---|---|---|---|---|
| Bit | 8 | 7 | 6 | 5 | 4 | 3 | 2 | 1 |
| Channel | P | Q | R | S | T | U | V | W |
| Frame 1 | Sync word 1 | Sync word 1 | Sync word 1 | Sync word 1 | Sync word 1 | Sync word 1 | Sync word 1 | Sync word 1 |
| Frame 2 | Sync word 2 | Sync word 2 | Sync word 2 | Sync word 2 | Sync word 2 | Sync word 2 | Sync word 2 | Sync word 2 |
| Frame 3 | Channel data | Channel data | Channel data | Channel data | Channel data | Channel data | Channel data | Channel data |
| Frame .. | Channel data | Channel data | Channel data | Channel data | Channel data | Channel data | Channel data | Channel data |
| Frame .. | Channel data | Channel data | Channel data | Channel data | Channel data | Channel data | Channel data | Channel data |
| Frame .. | Channel data | Channel data | Channel data | Channel data | Channel data | Channel data | Channel data | Channel data |
| Frame 98 | Channel data | Channel data | Channel data | Channel data | Channel data | Channel data | Channel data | Channel data |
`t

>>Channels

Both the P and Q channels on a regular audio CD are used for timing information. They assist the CD player in tracking the current location on the disc, and to provide the timing information for the time display on the CD player. The rest are not used in the Red Book specification.

• `!Channel `*P`*`! is a simple "pause music" flag, which can be used for low-cost search systems. Many players ignore it in favor of the `*Q`* Channel. It indicates a start of a new track by at least two consecutive seconds (150 sectors) of all 1s, and the last block with all 1s is the first block of the new track.
• `!Channel `*Q`*`! is used for control purposes of more sophisticated players. It has three different modes, but with a common structure for all of them.`:cite-ref-ecma130-1-2[`F5bf`_`[1`#cite-note-ecma130-1]`_`f]

• `*Control bits`*: The first four bits are used for control, each being a flag for a different feature:

• `!Four-channel Compact Disc digital audio flag`!: indicates that the track uses `F33f`_`[four-channel audio`:/page/wikibook/entry.mu`zim=wikipedia_en_all_nopic_2025-08.zim|entry_path=Four-channel_compact_disc_digital_audio]`_`f (applies only to CD-DA). This feature was never used on Compact Discs.
• `!Data flag`!: Indicates that this track contains data (rather than audio). Can be used for muting in audio CD players. Not used in the original CD-DA standard, added in the `F33f`_`[CD-ROM`:/page/wikibook/entry.mu`zim=wikipedia_en_all_nopic_2025-08.zim|entry_path=CD-ROM]`_`f specifications. Some older CD players do not mute when this flag is set, producing a loud electronic noise when a data CD is played.
• `!Digital copy permission flag`!: Used by the `F33f`_`[Serial Copy Management System`:/page/wikibook/entry.mu`zim=wikipedia_en_all_nopic_2025-08.zim|entry_path=Serial_Copy_Management_System]`_`f to indicate permission to digitally copy the track.
• `!Pre-emphasis flag`!: The audio track was recorded with `F33f`_`[pre-emphasis`:/page/wikibook/entry.mu`zim=wikipedia_en_all_nopic_2025-08.zim|entry_path=Preemphasis]`_`f (applies only to CD-DA). Common on CDs from the early 1980s. Used very rarely on modern Compact Discs.

• `*Mode bits`*: The next four bits indicate the mode of the Q channel, which can vary from 1 to 3, and define the structure and contents of the next bits.
• `*Data bits`*: The next 72 bits contain Q-channel data, and their structure depends on the mode defined in the previous bits.

• `!Q Mode 1`!: In this mode, the data bits contain the `F33f`_`[Table of Contents`:/page/wikibook/entry.mu`zim=wikipedia_en_all_nopic_2025-08.zim|entry_path=Compact_Disc_Digital_Audio]`_`f of the `F33f`_`[session`:/page/wikibook/entry.mu`zim=wikipedia_en_all_nopic_2025-08.zim|entry_path=Session_(CD)]`_`f (if the Q channel is in the lead-in area), or timing information for the current track (if the Q channel is in the program and lead-out areas of a session).
• `!Q Mode 2`!: In this mode, the data bits contain the Media Catalog Number (MCN)`:cite-ref-2[`F5bf`_`[2`#cite-note-2]`_`f] of the disc.
• `!Q Mode 3`!: In this mode, the data bits contain an `F33f`_`[International Standard Recording Code`:/page/wikibook/entry.mu`zim=wikipedia_en_all_nopic_2025-08.zim|entry_path=International_Standard_Recording_Code]`_`f (ISRC) for each track (applicable to CD-DA only). The ISRC is used by the media industry, and contains information about the country of origin, the year of publication, owner of the rights, as well as a serial number.

• `*`F33f`_`[Cyclic redundancy check`:/page/wikibook/entry.mu`zim=wikipedia_en_all_nopic_2025-08.zim|entry_path=Cyclic_redundancy_check]`_`f bits`*: The last 16 bits contain an error detection code computed over the previous bits of the channel.

• `!Channels `*R`* through `*W`*`! are unused by Red Book compliant CDs and Yellow Book compliant CD-ROMs, and have been used for extensions to the standard:

• `F33f`_`[CD-Text`:/page/wikibook/entry.mu`zim=wikipedia_en_all_nopic_2025-08.zim|entry_path=CD-Text]`_`f is an extension to the `F33f`_`[Red Book`:/page/wikibook/entry.mu`zim=wikipedia_en_all_nopic_2025-08.zim|entry_path=Red_Book_(audio_CD_standard)]`_`f standard for audio CDs. It allows for storage of additional information (e.g. album name, song name, and artist) on the `*R`* through `*W`* subcode channels on the disc (either in the lead-in area or in the program or main area).
• The `F33f`_`[CD+G`:/page/wikibook/entry.mu`zim=wikipedia_en_all_nopic_2025-08.zim|entry_path=CD+G]`_`f or "karaoke" extension also uses the `*R`* through `*W`* subcode channels to store low resolution graphics.
• Several `F33f`_`[copy protection systems`:/page/wikibook/entry.mu`zim=wikipedia_en_all_nopic_2025-08.zim|entry_path=Compact_Disc_and_DVD_copy_protection]`_`f made use of the fact that some `F33f`_`[disk copying utilities`:/page/wikibook/entry.mu`zim=wikipedia_en_all_nopic_2025-08.zim|entry_path=Ripping]`_`f neglect to copy subcode data due to the obscurity of it. `F33f`_`[CloneCD`:/page/wikibook/entry.mu`zim=wikipedia_en_all_nopic_2025-08.zim|entry_path=CloneCD]`_`f can read subcode data and save it to a `F33f`_`[CloneCD Control File`:/page/wikibook/entry.mu`zim=wikipedia_en_all_nopic_2025-08.zim|entry_path=CloneCD_Control_File]`_`f.

>>Jack on CD players

Some older CD players, such as the `F33f`_`[Pioneer`:/page/wikibook/entry.mu`zim=wikipedia_en_all_nopic_2025-08.zim|entry_path=Pioneer_Corporation]`_`f PD-5010, have a socket for an `F33f`_`[eight-pin mini-DIN connector`:/page/wikibook/entry.mu`zim=wikipedia_en_all_nopic_2025-08.zim|entry_path=Mini-DIN_connector]`_`f on the back labeled "Subcode Out".

>>See also

• `F33f`_`[CD ripper`:/page/wikibook/entry.mu`zim=wikipedia_en_all_nopic_2025-08.zim|entry_path=CD_ripper]`_`f

>>References

`:cite-note-ecma130-1`!1.`! `F0af`_`[↑`#cite-ref-ecma130-1-0]`_`f "Data Interchange on Read-only 120 mm Optical Data Disks (CD-ROM)". ECMA. June 1996. Retrieved 2009-04-26.
`:cite-note-2`!2.`! `F0af`_`[↑`#cite-ref-2]`_`f "INFORMATION ON CD FORMATS". `*www.csun.edu`*. Retrieved 2022-06-26.

`c`F0af`_`[↑ Back to top`#top]`_`f`a